#pragma once

#include <iostream>

const int RECVSIZE = 1024;


class MsgNode 
{
public:
    //MsgNode为存储读取数据的节点时
    MsgNode(int total_len);
    //MsgNode为存储发送数据的节点时
    MsgNode(const char *msg, int total_len);
    ~MsgNode();


public:
    char *_msg;
    int _total_len;
    int _cur_len;


};

